import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/index/Index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',   //首页
      name: 'index',
      component: Index
    },
    {
      path: '/home',  //内页首页
      name: 'home',
      component: () => import('./views/home/Home.vue')
    },
    {
      path: '/member',  //会员列表
      name: 'member',
      component: () => import('./views/member/Member.vue')
    },
    {
      path: '/share',  //活动分享设置
      name: 'share',
      component: () => import('./views/share/Share.vue')
    },
    {
      path: '/start-adver',   //活动启动动画
      name: 'start-adver',
      component: () => import('./views/startAdver/start-adver.vue')
    },
    {
      path: '/dress-up',   //活动装扮
      name: 'dress-up',
      component: () => import('./views/dressUp/dress-up.vue')
    },
    {
      path:'/after-person',   //活动的核销人员管理
      name:'after-person',
      component:()=>import('./views/afterPerson/after-person.vue')
    },
    {
      path:'/sponsor-coupon',   //门店卡券
      name:'sponsor-coupon',
      component:()=>import('./views/sponsorCoupon/sponsor-coupon.vue')
    },
    {
      path:'/coupon',   //门店卡券
      name:'coupon',
      component:()=>import('./views/coupon/Coupon.vue')
    },
    {
      path:'/activity',   //活动设置
      children:[
        {
          path: '',
          name:'activity-basic',   //活动基本信息
          component:()=>import('./views/activityBasic/activity-basic.vue')
        },
        {
          path: '/activity-setting',   //活动相关配置
          name:'activity-setting',
          component:()=>import('./views/activitySetting/activity-setting.vue')
        },
        {
          path: '/activity-explain',  //活动说明
          name: 'activity-explain',
          component: () => import('./views/activityExplain/activity-explain.vue')
        },
      ],
      component:()=>import('./views/activity/Activity.vue')
    },
    {
      path:'/bz',  //活动虚拟宝藏列表
      name:'bz',
      component:()=>import('./views/bz/Bz.vue')
    },
    {
      path:'/entity',
      name:'entity',
      component:()=>import('./views/entity/Entity.vue')
    }
  ]
})
